package com.czl.module_work.fragment

import android.text.TextUtils
import com.alibaba.android.arouter.facade.annotation.Route
import com.blankj.utilcode.util.GsonUtils
import com.bumptech.glide.Glide
import com.czl.base.base.BaseFragment
import com.czl.base.config.AppConstants
import com.czl.module_work.BR
import com.czl.module_work.R
import com.czl.module_work.databinding.WorkFragmentBigImageBinding
import com.czl.module_work.viewModel.ScanViewModel
import com.google.gson.reflect.TypeToken


/**
 * 创建日期：2022/3/17  16:05
 * 类说明:
 * @author：86152
 */
@Route(path = AppConstants.Router.Work.F_WORK_BIG_IMAGE)
class BigImageFragment : BaseFragment<WorkFragmentBigImageBinding, ScanViewModel>() {

    private var img = ""

    override fun useBaseLayout(): Boolean = false;

    override fun initContentView(): Int = R.layout.work_fragment_big_image

    override fun initVariableId(): Int = BR.viewModel

    override fun initData() {
        Glide.with(context!!).load(img).into(binding.ivImage)
    }

    override fun initParam() {
        img = arguments?.getString(AppConstants.BundleKey.WORK_RECORD_BIG_IMG) ?: ""

    }

}